This script will take you to two URLs at [...]% chance each:
<body>
<script type="text/javascript">
    var r=Math.random()
    if (r>0.5) {
        document.write("<a href='http://www.w3schools.com'>URL1</a>")}
    else {
        document.write("<a href='http://supermemo.com'>URL2</a>")}
</script>